<table class="table-bordered text-center">
    <thead>
    <tr>
        @foreach($titles as $title)
            <td>{{ $title }}</td>
        @endforeach
    </tr>
    </thead>
    <tbody>
    @foreach($items as $item)
        <tr>
            @foreach($item as $value)
                <td>{{ $value }}</td>
            @endforeach
        </tr>
    @endforeach
    </tbody>
</table>